import VipList from '../pages/vip/VipList';
import LanmuList from '../pages/lanmu/LanmuList';
import BaoTable from '../pages/lanmu/baoTable';
import ArticleList from '../pages/article/ArticleList';
import ArticleTypeList from '../pages/article/ArticleTypeList';
import NoticeList from '../pages/notice/NoticeList';
import NoticeType from '../pages/notice/NoticeType';
import SwiperList from '../pages/swiper/SwiperList';
import ClassifyList from '../pages/classify/ClassifyList';
import CommentList from '../pages/comment/CommentList';
import Opinion from '../pages/comment/Opinion';
import Login from '../pages/Login';
import PageNotFound from '../pages/PageNotFound'
import {
  ReadOutlined,
  FileProtectOutlined,
  SoundOutlined,
  PicLeftOutlined,
  UnorderedListOutlined,
  PlayCircleOutlined
} from '@ant-design/icons';

export const mainRoutes = [{
  path: '/',
  component: Login,
  exact: true,
}, {
  path: '/login',
  component: Login,
  exact: true,
}, {
  path: '/404',
  component: PageNotFound,
  exact: true,
}]

export const adminRoutes = [{
    title: "会员管理",
    path: "/admin/vip",
    icon: FileProtectOutlined,
    isshow : "1",
    exact: true,
    children: [{
      path: '/admin/vip/vipList',
      component: VipList,
      title: "会员列表",
      exact: true
    }]
  }, {
    title: "栏目管理",
    path: "/admin/lanmu",
    icon: FileProtectOutlined,
    isshow : "12",
    exact: true,
    children: [{
      path: '/admin/lanmu/lanmuList',
      component: LanmuList,
      title: "栏目列表",
      exact: true
    }, {
      path: '/admin/lanmu/baoTable',
      component: BaoTable,
      title: "统计报表",
      exact: true
    }]
  },
  {
    title: "文章管理",
    path: "/admin/article",
    icon: ReadOutlined,
    isshow : "12",
    exact: true,
    children: [{
      path: '/admin/article/articleList',
      component: ArticleList,
      title: "文章列表",
      exact: true
    }, {
      path: '/admin/article/articleTypeList',
      component: ArticleTypeList,
      title: "文章类型列表",
      exact: true
    }]
  },
  {
    title: "公告管理",
    path: "/admin/notice",
    icon: SoundOutlined,
    isshow : "12",
    exact: true,
    children: [{
      path: '/admin/notice/noticeType',
      component: NoticeType,
      title: "公告类型",
      exact: true
    }, {
      path: '/admin/notice/noticeList',
      component: NoticeList,
      title: "公告列表",
      exact: true
    }]
  },
  {
    title: "轮播管理",
    path: "/admin/swiper",
    icon: PlayCircleOutlined,
    isshow : "12",
    exact: true,
    children: [{
      path: '/admin/swiper/swiperList',
      component: SwiperList,
      title: "轮播列表",
      exact: true
    }]
  },
  {
    title: "分类管理",
    path: "/admin/classify",
    icon: UnorderedListOutlined,
    isshow : "12",
    exact: true,
    children: [{
      path: '/admin/classify/classifyList',
      component: ClassifyList,
      title: "分类列表",
      exact: true
    }]
  },
  {
    title: "评论管理",
    path: "/admin/comment",
    icon: PicLeftOutlined,
    isshow : "1",
    exact: true,
    children: [{
      path: '/admin/comment/commentList',
      component: CommentList,
      title: "评论列表",
      exact: true
    }, {
      path: '/admin/comment/opinion',
      component: Opinion,
      title: "意见反馈",
      exact: true
    }]
  }
]